package routers

import (
	"github.com/gin-gonic/gin"
	"ruoyi_gin/app/admin"
	"ruoyi_gin/config"
	"ruoyi_gin/utils"
)

func Init() *gin.Engine {
	gin.SetMode(config.Server.RunMode)

	r := gin.New()
	r.Use(utils.Core())

	admin.Routers(r)
	return r

}
